package org.summerframework.component.upload.file.service.dto;

import org.summerframework.core.base.dto.BaseDTO;
import io.swagger.annotations.ApiModelProperty;

import java.time.LocalDateTime;

import lombok.Data;
import lombok.EqualsAndHashCode;
import org.springframework.format.annotation.DateTimeFormat;

/**
 * file
 *
 * @author
 */
@Data
@EqualsAndHashCode(callSuper = true)
public class FileDTO extends BaseDTO {
    @ApiModelProperty(value = "名称", required = true)
    private String name;

    @ApiModelProperty(value = "", required = true)
    private String url;

    @ApiModelProperty(value = "", required = true)
    private Integer type;

    @ApiModelProperty(value = "", required = true)
    private String suffix;

    @ApiModelProperty(value = "", required = true)
    private Long size;

    @ApiModelProperty(value = "", required = true)
    private String md5;

    @ApiModelProperty(value = "")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime createTime;
}
